<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'SiteController@home');

Route::group(['prefix' => 'essence'], function() {
    Route::get('iteration', 'EssenceController@iteration');
    Route::get('event', 'EssenceController@event');
    Route::get('form', 'EssenceController@getForm');
});

Route::group(['prefix' => 'component'], function() {
    Route::get('{id}', 'ComponentController@show')->where('id', '[1-9]+');
    Route::get('tab', 'ComponentController@tab');
    Route::get('customize', 'ComponentController@customize');
    Route::get('provider', 'ComponentController@provider');
});

Route::group(['prefix' => 'article'], function() {
    Route::get('{id}', 'ArticleController@show')->where('id', '[1-9]+');
});






Route::group(['prefix' => 'ajax'], function() {
    Route::group(['prefix' => 'article'], function() {
        Route::post('{id}', 'ArticleController@showArticle')->where('id', '[1-9]+');
        Route::post('list', 'ArticleController@showList');
    });

});
